<template>
  <div class="login-page">
    <div class="login-left">
      <div class="app_logo">
        <img src="@/assets/svg/logo.png" />
        <h1>快一点后台管理系统</h1>
      </div>
      <div class="iconn">
        <img src="@/assets/svg/work.svg" />
      </div>
    </div>
    <div class="login-right">
      <div class="login_frame">
        <div class="login_box">
          <h4>账号登录</h4>
          <div class="from">
            <div class="inp">
              <el-input v-model="account.user" placeholder="请输入账号"></el-input>
            </div>
            <div class="inp">
              <el-input type="password" show-password v-model="account.pass" placeholder="请输入密码"></el-input>
            </div>
            <div class="submit flex">
              <el-button class="w-full login">登录</el-button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
import { reactive } from 'vue';
const account = reactive({
  user: '',
  pass: ''
})
</script>
<style lang="less">
.login-page {
  width: 100vw;
  height: 100vh;
  display: flex;

  >.login-left {
    width: 476px;
    height: 100vh;
    background: rgb(245, 249, 252);

    .app_logo {
      position: absolute;
      left: 15px;
      top: 15px;
      display: flex;
      align-items: flex-end;

      >img {
        width: 40px;
        height: 40px;
        border-radius: 5px;
      }

      >h1 {
        margin-left: 10px;
        font-size: 25px;
        font-weight: 600;
      }
    }

    .iconn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;

      >img {
        width: 100%;
      }
    }

  }

  .login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;

    >h2 {
      margin: 40px 20px 0px;
      text-align: center;
      font-size: 32px;
      font-weight: bold;
      color: #2a2a2a;
      line-height: 48px;

      &:hover {
        color: #0088ea;
      }
    }

    .login_frame {
      display: flex;
      justify-content: center;
    }

    .login_box {
      margin-top: -100px;
      padding: 20px;
      width: 320px;
      height: 300px;

      >h4 {
        text-align: center;
        height: 24px;
        font-size: 26px;
        font-weight: 400;
        color: #000000;
        line-height: 24px;
        margin-bottom: 50px;
      }


      >.from {
        >.inp {
          margin-bottom: 20px;
          display: flex;
          flex-direction: column;

          >.el-input {
            height: 45px;
            opacity: 1;
            outline: none;

            >.el-input__wrapper {
              border-radius: 10px;
            }
          }
        }

        >.submit {
          margin-top: 30px;
          display: flex;

          >.el-button {
            flex: 1;
            background: #0088ea;
            border-color: #0088ea;
            height: 40px;
            font-size: 15px;
            letter-spacing: 5px;
            color: #fff;
          }
        }
      }
    }
  }
}
</style>